package com.panda.pandawash.bean;

import com.google.gson.annotations.SerializedName;

/**
 * Created by hys
 * date: 2017/1/14
 * Description:
 * <p>
 */

public class UserBean {

    @SerializedName("login_account")
    private String useraccount;
    private String username;
    private String userpassword;
    private String avatar;
    private String token;
    private String photoUrl;
    private String activateDate;
    private String description;
    private String email;

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public String getActivateDate() {
        return activateDate;
    }

    public void setActivateDate(String activateDate) {
        this.activateDate = activateDate;
    }


    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUseraccount() {
        return useraccount;
    }

    public void setUseraccount(String useraccount) {
        this.useraccount = useraccount;
    }

    public String getUserpassword() {
        return useraccount;
    }

    public void setUserpassword(String userpassword) {
        this.userpassword = userpassword;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "useraccount='" + useraccount + '\'' +
                ", avatar='" + avatar + '\'' +
                ", token='" + token + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserBean that = (UserBean) o;

        if (token != null && !token.equals(that.token)) return false;
        if (userpassword != null && !userpassword.equals(that.userpassword)) return false;
        if (useraccount != null && !useraccount.equals(that.useraccount)) return false;
        if (avatar != null && !avatar.equals(that.avatar)) return false;
        return true;

    }

    @Override
    public int hashCode() {
        int result = useraccount.hashCode();
        result = 31 * result + userpassword.hashCode();
        result = 31 * result + avatar.hashCode();
        result = 31 * result + token.hashCode();
        return result;
    }

}
